﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace SIOsystem
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new ReportForm());
            //return;
            LoginForm lg = new LoginForm();
            if (lg.ShowDialog() == DialogResult.OK)
            {
                if (lg.uname == "admin")
                {
                    ConfigForm c = new ConfigForm();
                    c.uname = lg.uname;
                    c.id = lg.id;
                    c.rid = lg.rid;
                    Application.Run(c);
                    return;
                }
                MainForm m = new MainForm();
                m.uname = lg.uname;
                m.id = lg.id;
                m.rid = lg.rid;
                Application.Run(m);
            }   

        }
    }
}
